#ifndef __MATERIAL_H__
#define __MATERIAL_H__

#include "jpeg/jpegdecoder.h"

typedef vector<unsigned int> MaterialList;
typedef vector<unsigned int>::iterator MaterialListIter;

class Material
{
public:
	Material();
	~Material();

	void LoadBy3dsFile(Lib3dsFile* pFile);
	void LoadByMaterial(Material& material);
	void Render(int texid);
private:
	ImageData GetImageData(string strJpegPath);
	unsigned int LoadBitmapTexture(ImageData data, Lib3dsMaterial* p3dsMaterial);
	unsigned int LoadColorTexture(Lib3dsMaterial* p3dsMaterial);

private:
	MaterialList m_datalist;
};

#endif